<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/style/cssMain.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/style/jQuery.js"></script>
    <script type="text/javascript" src="/style/jsMain.js"></script>
  </head>
  
  <body>
    <div id="eBody">
      <div class="eTitle"><?php echo $name?>管理</div>
      <div class="eTool">
        <ul>
          <li><a href="javascript:" onClick="selectID(1)">选择所有</a></li>
          <li><a href="javascript:" onClick="selectID(0)">取消</a></li>
         
        </ul>
        <ul>
        <li><a href="javascript:" onClick="selectID(1); submitAll('<?php echo site_url('mang/codevalue/order'); ?>?cid=<?php echo $id; ?>')">保存排序</a></li>
          <li><a href="javascript:" onClick="submitAll('<?php echo site_url('mang/codevalue/delete?cid='.$id); ?>')">删除</a></li>
        </ul>
        <ul>
        	 <li><a href="<?php echo site_url('mang/codevalue/action?cid='.$id); ?>">添加</a></li>
        </ul>
      </div>
      <div class="eTag">
        <ul>
          <li class="eSelected"'><a href="<?php echo site_url('mang/codevalue/edit?id='.$id); ?>">所有内容</a></li>
        </ul>
      </div>
      <div class="eSheet eBorder">
        <form id="Romeo" method="post">
        <div class="eList">
        	<?php foreach ($codeList as $code):?>
        	<dl class="">
	            <dt><input id="checkID" name="checkID[]" type="checkbox" value="<?php echo $code['id']?>"></dt>
	            <dd>
	              <div class="listTitle">
	                			  <input name="orderID[]" type="text" value="<?php echo $code['sort']?>"> 
	                <?php echo $code['value']?>              </div>
	              <div class="listTool">
					 <a href="<?php echo site_url('mang/codevalue/action?cid='.$id.'&id='.$code['id'])?>">编辑</a>
	                <a name="delete" href="<?php echo site_url('mang/codevalue/delete?cid='.$id.'&id='.$code['id'])?>" class="del">删除</a>
	              </div>
	            </dd>
	          </dl>
		 	<?php endforeach;?>
        </div>
        </form>
      </div>
    </div>
  </body>
</html>
